package com.xxrl.shop.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.io.Serializable;

/**
 * @author mis
 */
@ApiModel(description = "A record of application to became merchant.")
@Data
@Document(collection = "apply_merchant")
public class Apply implements Serializable {
    @ApiModelProperty(notes = "Unique identifier of the Apply.", example = "000000000000000000000000",
            required = true)
    @MongoId
    private String id;

    @ApiModelProperty(notes = "Relative user id", example = "1")
    @Field
    private Long userId;

    @ApiModelProperty(notes = "Date of submission of this application")
    @Field
    private String submitDate;
}
